package top.hjcwzx.wrench.design.framework.service.link.singleton.logic;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.hjcwzx.wrench.design.framework.link.singleton.AbstractLogicLink;
import top.hjcwzx.wrench.design.framework.model.link.singleton.LogicSingletonReq;
import top.hjcwzx.wrench.design.framework.model.link.singleton.LogicSingletonRes;
import top.hjcwzx.wrench.design.framework.service.link.singleton.factory.DefaultTestRuleLogicFactory;


@Slf4j
@Service
public class TestSingletonRuleLogic01 extends AbstractLogicLink<LogicSingletonReq, DefaultTestRuleLogicFactory.DynamicContext, LogicSingletonRes> {

    @Override
    public LogicSingletonRes apply(LogicSingletonReq requestParameter, DefaultTestRuleLogicFactory.DynamicContext dynamicContext) throws Exception {
        log.info("抽象单例链-链路01-执行链路逻辑-入参: {},上下文: {}", requestParameter, dynamicContext);
        return next(requestParameter, dynamicContext);
    }
}
